import { createRouter, createWebHistory } from 'vue-router'
import DefaultLayout from '@/layouts/default.vue'

const routes = [
  {
    path: '/',
    component: DefaultLayout,
    children: [
        {
            path: '',
            name: 'Dashboard',
            component: () => import('@/views/Dashboard.vue')
        },
        {
            path: '/texts',
            name: 'Texts',
            component: () => import('@/views/Texts.vue')
        },
        {
            path: '/images',
            name: 'Images',
            component: () => import('@/views/Images.vue')
        },
        {
            path: '/logs',
            name: 'Logs',
            component: () => import('@/views/Logs.vue')
        },
    ]
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router